package com.yiwyn.beans;

import org.springframework.stereotype.Component;


@Component
public class MyBean extends BaseBean {

    @Override
    public String printB() {
        String c = otherBean.getC();
        BaseBean baseBean = Router.get("myBean");
        String s = baseBean.printA();
        System.out.println(s);
        return " bean B " + c;
    }

    @Override
    public String beanKey() {
        return "myBean";
    }
}
